package cn.findviewbydream.evil.bigtoutiao.utils;

/********************************************
 * 工程名：MOtoWaiter
 * 包名：cn.findviewbydream.evil.motowaiter.utils.data
 * 时间：17-1-17
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：
 ********************************************/
public class IP
{
    private static String ip = "";
    private static String port = "8080";

    public static String getIp(String url)
    {
        return ip + url;
    }

    public static String getIp()
    {
        return ip;
    }

    public static String getImgIp(String img)
    {
        return ip + "/static/upload/img/meal/" + img;
    }

    public static void setIp(String ip)
    {
        IP.ip = ip;
    }

    public static void setIpWhitPort(String ip)
    {
        IP.ip = "http://" + ip + ":" + IP.getPort();
    }

    public static String getPort()
    {
        return port;
    }

    public static void setPort(String port)
    {
        IP.port = port;
    }
}
